Don't time out after 0.006 seconds
authorSteven Fackler <sfackler@gmail.com>
Wed, 25 Feb 2015 04:20:59 +0000 (20:20 -0800)
committerSteven Fackler <sfackler@gmail.com>
Wed, 25 Feb 2015 04:20:59 +0000 (20:20 -0800)
src/cargo/ops/registry.rs

index d72ed78fd9151ea6fdc27e13c4aef378aa726f36..b62e5b2041e56675a6f697dd82b0fa9bfb0f0857 100644 (file)
@@ -161,7 +161,7 @@ pub fn registry(config: &Config,
 
 /// Create a new HTTP handle with appropriate global configuration for cargo.
 pub fn http_handle(config: &Config) -> CargoResult<http::Handle> {
-    let handle = http::handle().timeout(60);
+    let handle = http::handle().timeout(60_000);
     let handle = match try!(http_proxy(config)) {
         Some(proxy) => handle.proxy(proxy),
         None => handle,